//
//  PywLoginMainView.h
//  PywSdk
//
//  Created by Jade on 4/7/16.
//  Copyright © 2016 zero. All rights reserved.
//

#import <UIKit/UIKit.h>

/*登录主界面*/
@class PywLoginMainView;
/**
 *  平台账号登录成功-跳转到游戏账号登陆
 *
 *  @param loginMainView loginMainView
 *  @param accountList   accountList
 */
typedef void (^LoginPassportCompletion)(PywLoginMainView *loginMainView,NSArray *accountList);
/**
 *  登录平台账号失败
 *
 *  @param loginMainView <#loginMainView description#>
 */
typedef void (^LoginPassportFail)(PywLoginMainView *loginMainView);
/**
 *  游戏账号登录成功-跳转到登录中
 *
 *  @param loginMainView
 */
typedef void (^LoginAccountCompletion)(PywLoginMainView *loginMainView);
/**
 *  快速注册
 *
 *  @param loginMainView <#loginMainView description#>
 */
typedef void (^LoginRegisterCompletion)(PywLoginMainView *loginMainView);
/**
 *  切换账号登录成功
 *
 *  @param loginStatusView <#loginStatusView description#>
 */
typedef void (^LoginSwitchAccountCompletion)(PywLoginMainView *loginMainView);
/**
 *  游客登录
 *
 *  @param loginMainView <#loginMainView description#>
 */
typedef void (^LoginVisitorCompletion)(PywLoginMainView *loginMainView);

@interface PywLoginMainView : UIView
@property (nonatomic,copy) LoginPassportCompletion loginPassportCompletion;
@property (nonatomic,copy) LoginPassportFail loginPassportFail;
@property (nonatomic,copy) LoginAccountCompletion loginAccountCompletion;
@property (nonatomic,copy) LoginRegisterCompletion loginRegisterCompletion;
@property (nonatomic,copy) LoginSwitchAccountCompletion loginSwitchAccountCompletion;
@property (nonatomic,copy) LoginVisitorCompletion loginVisitorCompletion;

/**
 *  添加到父视图
 *
 *  @param superView <#superView description#>
 */
- (void)add2SuperView:(UIView *)superView;
/**
 *  自动登录通行证账号
 */
- (void)autoLoginPassport;

/**
 *  注册后登录游戏账号
 *
 *  @param loginPassport <#loginPassport description#>
 */
- (void)reloadLoginText:(NSString *)loginPassport password:(NSString *)password;
@end